
Calculator Help

                                               version: 0.1.6
                                               created: 00-08-23 16.41.11
                                           last update: 00-12-28 23.54.56


Alpha has its own calculator.  This is just a quick-and-dirty RPN stack
calculator, which works on both signed and unsigned decimals, hex integers,
and floating point.  See the file "calc.tcl" for the source code.

Invoke from the Utils menu, holding down the shift key.

Operations:                                                          

	+,-,*,/,|,&,%   Top of stack is 'y', next is 'x'. Does x OP y.   
	~               bitwise NOT                                      
	^               x eor y                                          
	<               x << y                                           
	>               x >> y                                           
	n               change y's sign                                  
	q               duplicate y                                          
	i               swap x and y                                     
	m               switch signed/unsigned/hex modes                         
	x               show current mode
	h or ?          help
	<delete>        pop stack                                        
	<space>         enter number    
	opt-P           pi (3.14159265358979323)
	shift-opt-E     e  (2.718281828459045)


Floating point extensions (work only in floating point mode):

The letters in <brackets> refer to these modifier keys:

       o   - option modifier
       s   - shift modifier
       z   - control modifier


	e <so>          returns e=exp(1)=2.718281828459045
	p <o>           returns =3.14159265358979323
	
	f <o>           floor(y)
	f <so>          ceil(y)
	
	f <oz>          fmod(x,y) (also %)
	h <oz>          hypot(x,y)
	p <oz>          x^y (also ^)
	s <oz>          sqrt(y)
	
	l <z>           log(y)
	l <sz>          exp(y)
	l <oz>          log10(y)
	
	c <o>           cos(y)
	s <o>           sin(y)
	t <o>           tan(y)
	
	c <so>          acos(y)
	s <so>          asin(y)
	t <so>          atan(y)
	
	c <z>           cosh(y)
	s <z>           sinh(y)
	t <z>           tanh(y)
	
	c <sz>          acosh(y)
	s <sz>          asinh(y)
	t <sz>          atanh(y)
	
	t <oz>          atan2(x,y)


All these bindings can be found in the 'Calc' menu.

All calculations are performed in signed decimal in integer modes.  Floating
point numbers can be entered as -1.0e-5 (use 'CTRL+-' to get the minus sign). 
In floating point mode the actual precision is set by the preference
'displayPrec' (the default value is 6).

International users shall not forget to type a space after the dead keys to
get ~ and ^.


	----------------------------------------------------------------------


This "Calculator Example" hyperlink will return the result of typing  

	1 <cr> 1 + <cr>
	1 <cr> 1 + <cr> 4.2 *

It first calculates 1 + 1, then calculates (1 + 1) * 4.2


	----------------------------------------------------------------------

Author: ??

Calculator Help file updated by Craig Barton Upright

E-mail: <cupright@princeton.edu>
  mail: Princeton University,  Department of Sociology
        Princeton, New Jersey  08544
   www: <http://www.princeton.edu/~cupright/>

